﻿

using Admin.NET.Core;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotFun.Entity;
/// <summary>
/// 采集设备表
/// </summary>
[SugarTable("net_equip_info_iot", TableDescription = "采集设备表")]
public class EquipInfo:EntityBase
{


    /// <summary>
    /// 设备名称
    /// </summary>
    [SugarColumn(ColumnDescription = "名称", IsNullable = true, Length = 90)]
    public string Name { get; set; }

    /// <summary>
    /// 设备分组
    /// </summary>
    [SugarColumn(ColumnDescription = "分组Id", IsNullable = true)]
    public long GroupId { get; set; }

    /// <summary>
    /// 所属程序Id
    /// </summary>
    [SugarColumn(ColumnDescription = "程序Id", IsNullable = true)]
    public long ProgramId { get; set; }

    /// <summary>
    /// IP端口地址
    /// </summary>
    [SugarColumn(ColumnDescription = "IP端口", IsNullable = true, Length = 50)]
    public string IPAddress { get; set; }

    /// <summary>
    /// 是否启用
    /// </summary>
    [SugarColumn(ColumnDescription = "是否启用", IsNullable = true)]
    public int IsEnable { get; set; }

    /// <summary>
    /// 编号
    /// </summary>
    [SugarColumn(ColumnDescription = "编号", IsNullable = true,Length =70)]
    public string Num { get; set; }

    /// <summary>
    /// 轮询时间;轮询时间毫秒
    /// </summary>
    [SugarColumn(ColumnDescription = "轮询时间", IsNullable = true)]
    public int Pooling { get; set; }
    /// <summary>
    /// 排序号
    /// </summary>
    [SugarColumn(ColumnDescription = "排序", IsNullable = true)]
    public int OrderNum { get; set; }
    /// <summary>
    /// 绑定单元号
    /// </summary>
    [SugarColumn(ColumnDescription = "绑定单元号", IsNullable = true,Length =70)]
    public string UnitNum { get; set; }

    /// <summary>
    /// 绑定节点号
    /// </summary>
    [SugarColumn(ColumnDescription = "绑定节点号", IsNullable = true,Length =70)]
    public string BindNum { get; set; }

    /// <summary>
    /// 设备类型;设备类型
    /// </summary>
    [SugarColumn(ColumnDescription = "设备类型", IsNullable = true, Length = 90)]
    public string EquipType { get; set; }

    /// <summary>
    /// 协议类型
    /// </summary>
    [SugarColumn(ColumnDescription = "协议类型", IsNullable = true, Length = 90)]
    public string ProtobufType { get; set; }

    /// <summary>
    /// 解析方向
    /// </summary>
    [SugarColumn(ColumnDescription = "解析方向", IsNullable = true, Length = 50)]
    public string ReadDirection { get; set; }


    /// <summary>
    /// 备注;备注
    /// </summary>
    [SugarColumn(ColumnDescription = "备注", IsNullable = true, Length = 90)]
    public string Remark { get; set; }
    /// <summary>
    /// 是否Mqtt发布
    /// </summary>
    [SugarColumn(ColumnDescription = "Mqtt发布", IsNullable = true)]
    public int IsMqttPublish { get; set; }

}
